/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 angle.h

	$Header: /heroes4/angle.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( ANGLE_H_INCLUDED )
#define ANGLE_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

enum   t_direction;
struct t_map_point_2d;
struct t_screen_point;

// calculate angles in degrees
int         get_angle( t_map_point_2d const& vector );
int         get_difference( int left_angle, int right_angle ); // in 0-180 degrees.
t_direction get_direction( int angle );  // convert an angle in degrees to a direction
int			get_angle( t_map_point_2d const& left, t_map_point_2d const& right );
int         get_map_angle( t_screen_point const& left, t_screen_point const& right );
inline int  get_angle( t_direction direction )
{// get angle in degrees from a direction
	return direction * 45;
}

#endif
